package cn.edu.scau.cmi.wusonglang.abstractFactory;

public class InsuranceFactory {
	
	private static final String BodyInjure = "bodyInjure";
	private static final String PersonInjure = "personInjure";
	private static final String Com = "com";
	private static final String Collision = "collision";
	
public static InsuranceFactory getInsurenaceFactory(String type) {
	InsuranceFactory insuranceFactory = null;
	if(type.equals(InsuranceFactory.BodyInjure)) {
		insuranceFactory = new BodyInjureFactory();
	}
	else if(type.equals(InsuranceFactory.PersonInjure)) {
		insuranceFactory = new PersonInjureFactory();
	}
	else if(type.equals(InsuranceFactory.Com)) {
		insuranceFactory = new ComFactory();
	}
	else if(type.equals(InsuranceFactory.Collision)) {
		insuranceFactory = new CollisionFactory();
	}
	return insuranceFactory;
}

public PICC getPICC() {
	return null;
}

public PingAn getPingAn() {
	return null;
}

}
